package com.glory.brepda.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.glory.brepda.R;
import com.glory.brepda.entity.LotInfoEntity;

import java.util.List;

public class RunLotListAdapter extends BaseQuickAdapter<LotInfoEntity.LotBean, BaseViewHolder> {

    public RunLotListAdapter(@Nullable List<LotInfoEntity.LotBean> data) {
        super(R.layout.adapter_run_lot,data);
    }

    @Override
    protected void convert(BaseViewHolder helper, LotInfoEntity.LotBean item) {
        helper.setText(R.id.tvLotID,item.getLOTID())
                .setText(R.id.tvNum,String.valueOf(helper.getAdapterPosition() + 1))
                .setText(R.id.tvMainQTY,String.valueOf(item.getMAINQTY()));
    }
}
